
add_subdirectory( doc )
add_subdirectory( pics )
add_subdirectory( typetables )

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}  ${KDE4_INCLUDE_DIR} ${QT_INCLUDES}  )


########### next target ###############

set(crossdbg_SRCS 
   pgmargs.cpp 
   procattach.cpp 
   tableview.cpp 
   ktreeview.cpp 
   textvw.cpp 
   debugger.cpp 
   programconfig.cpp 
   dbgdriver.cpp 
   gdbdriver.cpp 
   brkpt.cpp 
   exprwnd.cpp 
   regwnd.cpp 
   memwindow.cpp 
   threadlist.cpp 
   sourcewnd.cpp 
   winstack.cpp 
   ttywnd.cpp 
   typetable.cpp 
   prefdebugger.cpp 
   prefmisc.cpp 
   pgmsettings.cpp 
   mainwndbase.cpp 
   dbgmainwnd.cpp 
   main.cpp )

kde4_add_ui_files(crossdbg_SRCS procattachbase.ui )

kde4_add_executable(crossdbg ${crossdbg_SRCS})

target_link_libraries(crossdbg  ${KDE4_KDECORE_LIBS} )

install(TARGETS crossdbg DESTINATION ${BIN_INSTALL_DIR})


########### install files ###############

install( FILES  crossdbg.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES  crossdbgrc DESTINATION ${CONFIG_INSTALL_DIR} )
install( FILES  crossdbgui.rc DESTINATION ${DATA_INSTALL_DIR}/crossdbg )
